import request from '@/config/axios'

export interface OutboundStorageOrderVO {
  id: number
  storageOrderId: number
  arriveOrderId: number
  arriveNumber: string
  orderNumber: string
  supplierName: string
  salesName: string
  requisitionForm: string
  dictOutsourceMode: number
  productNumber: string
  partNumber: string
  partName: string
  drawingNumber: string
  partSpecification: string
  material: string
  specification: string
  netSizeLength: number
  netSizeWidth: number
  cuttingSizeLength: number
  cuttingSizeWidth: number
  arriveQuantity: number
  storageQuantity: number
  storageLocation: string
  dictUnit: number
  dictProcessName: number
  dictTypeOfWork: number
  dictBaitingType: number
  dictIsMachine: number
  dictMachiningProcess: number
  requirementTime: Date
  creatorName: string
  updaterName: string
}

// 查询外协管理 -- 外协入/出库 -- 外协入库单关系列表
export const getOutboundStorageOrderPage = async (params) => {
  return await request.get({ url: `outsourcing/outbound-storage-order-relation/page`, params })
}

// 查询外协管理 -- 外协入/出库 -- 外协入库单关系详情
export const getOutboundStorageOrder = async (params) => {
  return await request.get({ url: `/outsource/outbound-storage-order/get`, params })
}

// 导出外协管理 -- 外协入/出库 -- 外协入库单关系 Excel
export const exportOutboundStorageOrder = async (data) => {
  return await request.download({ url: `/outsourcing/outbound-storage-order-relation/export-excel`, data })
}
